<template>
  <div v-show="status"
       class="search-map">
    <Select ref="JSelect"
            v-model="model.address"
            filterable
            remote
            :remote-method="search"
            @on-select="choose">
      <template v-for="item in list">
        <Option :value="item.address"
                :key="item.id">{{item.title}}：{{item.address}}</Option>
      </template>
    </Select>
    <div v-if="status"
         id="report-map"
         style="height: 300px;" />
  </div>
</template>

<script>
export default {
  data() {
    return {
      status: false,
      list: [],
    };
  },

  methods: {
    show() {
      this.status = true;
    },

    hide() {
      this.status = false;
      this.list = [];
    },

    search() {},

    choose() {},
  },
};
</script>

<style lang="less" scoped>
.search-map {
}
</style>